home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / wdj0697.zip / WIESMAN.ZIP / CUSTCTRL.H < prev    next >
C/C++ Source or Header  |  1997-01-20  |  651b  |  30 lines

  1. // CustCtrl.h : header file
  2. //
  3. #ifndef __CUSTCTRL_H__
  4. #define __CUSTCTRL_H__
  5.  
  6. #define __CUSTCTRLCLASS__ "__WDJCustCtrlClass__"
  7.  
  8. LRESULT CALLBACK CustomControlWndProc(HWND hwnd, UINT msg, 
  9.                                       WPARAM wParam, LPARAM lParam);
  10.  
  11. class CCustomControlTerm
  12. {
  13. public:
  14.    static BOOL m_bInitialized;
  15.  
  16.    CCustomControlTerm()
  17.    {
  18.       if(!m_bInitialized)
  19.       {
  20.          WNDCLASS wc;
  21.  
  22.          GetClassInfo(NULL, "button", &wc);
  23.          wc.lpfnWndProc = CustomControlWndProc;
  24.          wc.lpszClassName = __CUSTCTRLCLASS__;
  25.          m_bInitialized = AfxRegisterClass(&wc);
  26.       }
  27.    }
  28. };
  29. #endif
  30.